solving consumer choice over two time periods